Repository navigation
web-gen: extract web-gen-ui components crate (split step 2, #8961) - #12918
Merged
Merged
Conversation
Move the five Leptos components (App, TestApp, ProgressBar, RandomMultiplierForm, DetailedFormExample) verbatim from the bin's main.rs into the new member crate web-gen-ui, which depends on web-gen-core. The three previously private components become pub so the facade bin can re-export the ui surface; the bin keeps only main (mount/bootstrap) plus the re-export line. Shared leptos/leptos_router/wasm-bindgen/web-sys versions move to [workspace.dependencies] (the step-1 pattern); the bin drops the deps only the components used (leptos_router, wasm-bindgen, web-sys, web-gen-core). Behavior-preserving; no version bumps. Gate: cargo test --workspace green (web-gen-core 10/10, no failures), cargo check --locked clean, cargo fmt --check clean.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 27 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 2 of the pkgs/web-gen crate split (#8961; umbrella #8958). Step 1 (#8960, web-gen-core) landed in #12876; the revival gate was discharged by #12369 (stable Leptos 0.8.23 build restored).
What moves: the five components —
App,TestApp,ProgressBar,RandomMultiplierForm,DetailedFormExample— move verbatim frompkgs/web-gen/src/main.rsinto the new member crateweb-gen-ui(crates/web-gen-ui), which depends onweb-gen-core. The commented-out historicalFormExampleblock moves with them. The only source edits arepubon the three previously private components (App/TestApp/ProgressBar) so the facade can re-export them.Facade: the bin keeps
main(mount/bootstrap) and one re-export line,pub use web_gen_ui::{App, DetailedFormExample, ProgressBar, RandomMultiplierForm, TestApp};— no component code remains in the bin crate (0#[component]insrc/main.rs).Manifests: shared
leptos/leptos_router/wasm-bindgen/web-sysversions pinned in[workspace.dependencies](step-1 pattern); the bin drops the deps only the components used (leptos_router,wasm-bindgen,web-sys,web-gen-core). No dependency version bumps. Cargo.lock diff: +12/−4 (new path-only member).Verification (laptop worktree off origin/main):
cargo test --workspace --offline— all suites ok: web-gen-core 10 passed / 0 failed; ui + bin compile and run 0-test suites; doc-tests ok. No failures anywhere.cargo check --locked --offline— Finished, exit 0.cargo fmt -- --check— exit 0.Closes #8961.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.